<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>地址管理</title>
    <link rel="stylesheet"  type="text/css" href="/css/reset.css">
    <link rel="stylesheet"  type="text/css" href="/css/main.css">
    <script type="text/javascript" src="/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="/js/web_user_receiving_address.js"></script>
</head>
<body class="base_background">
    <div class="base">
        <div class="base_info">
            <h3>地址管理</h3>
        </div>
        <div class="base_content">
            <div class="address">
                <!-- 循环result数组获取地址数据 -->
                {{if result}}
                {{each result}}
                <div class="address_show">
                    <h3>{{$value.address}}</h3>
                    <button class="del_address" address_id="{{$value.address_id}}" user_id="{{$value.user_id}}">删除</button>
                    <p>{{$value.user_name}}</p>
                    <p>{{$value.phone}}</p>
                </div>
                {{/each}}
                {{/if}}
                <button class="add_address">+添加新地址</button>
            </div>
            <!-- 地址添加表单 -->
            <form class="address_info">
                <div>
                    <label>地址：</label>
                    <input type="text" name="address">
                </div>
                <div>
                    <label>姓名：</label>
                    <input type="text" name="user_name">
                </div>
                <div>
                    <label>联系电话：</label>
                    <input type="text" name="phone">
                </div>
                <div>
                    <a href="javascript:;" class="address_off">取消</a>
                    <button type="submit" class="address_add">保存</button>
                </div>
                <div class="mask"></div>
            </form>
        </div>
    </div>
</body>
</html>